package cn.iocoder.yudao.module.system.controller.admin.erp.warehouseinsku.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 入库单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WarehouseInRespExcelImportVO {
    @ExcelProperty("入库时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY,timezone = "GMT+8")
    @DateTimeFormat(pattern=FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime inWarehouseTime;

    @ExcelProperty("客户名称")
    private String customer;

    @ExcelProperty("sku")
    private String sku;

    @ExcelProperty("仓库名称")
    private String warehouse;

    @ExcelProperty("长度")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal length;

    @ExcelProperty("宽度")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal width;

    @ExcelProperty("高度")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal height;

    @ExcelProperty("重量")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal weight;

    @ExcelProperty("入库数量")
    private BigDecimal num;
}